import request from "@/utils/request";
// 保洁人员信息列表
export function listCleaner(params) {
  return request({
    url: "/enterprise/cleaner/cleaner/list",
    method: "get",
    params: params,
  });
}

// 获取企业用户信息
export function userInfoCleaner(params) {
  return request({
    url: "/enterprise/cleaner/cleaner/userInfo",
    method: "get",
    params: params,
  });
}

// 新增保洁人员信息
export function addCleaner(data) {
  return request({
    url: "/enterprise/cleaner/cleaner",
    method: "post",
    data: data,
  });
}

// 编辑保洁人员信息
export function editCleaner(data) {
  return request({
    url: "/enterprise/cleaner/cleaner",
    method: "put",
    data: data,
  });
}

// 删除保洁人员信息（路径跟保洁人员id）
export function deleteCleaner(id) {
  return request({
    url: "/enterprise/cleaner/cleaner/" + id,
    method: "delete",
  });
}

// 获取保洁人员信息详细信息（路径后面跟保洁人员id）
export function getCleaner(id) {
  return request({
    url: "/enterprise/cleaner/cleaner/"+id,
    method: "get",
  });
}
